import {PeekArea} from "../map/peekArea.mjs";
import {Player} from "./player.mjs";

const mapSize = {width: 15, height: 15}

// let container = document.getElementById('chessboard')
let container = document.querySelector('#chessboard')

let pos = [7, 1]
// let pos = [
//     Math.floor(mapSize.width / 2),
//     Math.floor(mapSize.height / 2)]

let peeker = new PeekArea(container, mapSize, pos)
let player = new Player(peeker)

player.setEventListener()
